package keywords;


import java.text.Collator;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

public class MxCompare {
    public static void main(String[] args) {
        //System.out.println("三".compareTo("蒙"));

        List<String> cityList = new ArrayList<>();
        cityList.add("上海");
        cityList.add("北京");
        cityList.add("广州");
        cityList.add("深圳");

        //Collections.sort(cityList, Collator.getInstance(java.util.Locale.CHINA));

        System.out.println(Collator.getInstance(Locale.CHINESE).compare("沱", "中"));

        Object o = new String("123");
        System.out.println(o instanceof  Integer);
    }
}
